package org.example.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("acm_comment")
public class Comment {

    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    //评论类型（0代表文章评论，1代表友链评论）
    private Integer type;
    //文章id
    private Integer articleId;
    //根评论id
    private Integer rootId;
    //评论内容
    private String content;
    //所回复的目标评论的userid
    private Integer toCommentUserId;
    //回复目标评论id
    private Integer toCommentId;

    private Integer createBy;

    private Date createTime;

    private Integer updateBy;

    private Date updateTime;
    //删除标志（0代表未删除，1代表已删除）
    private Integer delFlag;
}
